package cn.thornbird.orgsync.constraints;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Constraint(validatedBy = NotNullCaseWhenValidator.class)
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface NotNullCaseWhen {

    String message() default "The field must not be null";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

    String source();

    short[] sourceValues();

    String[] targets();

}
